package org.dicr.gui.data.sql;

import java.sql.*;

import javax.swing.event.*;
import javax.swing.table.*;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: Copyright (c) 2003
 * </p>
 * <p>
 * Company:
 * </p>
 * 
 * @author not attributable
 * @version 1.0
 */

public class ResultSetTableModel implements TableModel {
	protected ResultSet rs = null;

	public ResultSetTableModel() {
		super();
	}

	@SuppressWarnings("unused")
	public ResultSetTableModel(ResultSet theRs) {
	// setResultSet(rs);
	}

	@Override
    public int getRowCount() {
		if (this.rs == null) return 0;
		// rs.last();
		// return rs.getRow();
		return 0;

	}

	@Override
    public int getColumnCount() {
		if (this.rs == null) return 0;
		// return rs.getMetaData().getColumnCount();
		return 0;
	}

	@Override
    public String getColumnName(int columnIndex) {
		if (this.rs == null) return null;
		return null;

	}

	@Override
    public Class<?> getColumnClass(int columnIndex) {
		/** @todo Implement this javax.swing.table.TableModel method */
		throw new java.lang.UnsupportedOperationException("Method getColumnClass() not yet implemented.");
	}

	@Override
    public boolean isCellEditable(int rowIndex, int columnIndex) {
		/** @todo Implement this javax.swing.table.TableModel method */
		throw new java.lang.UnsupportedOperationException("Method isCellEditable() not yet implemented.");
	}

	@Override
    public Object getValueAt(int rowIndex, int columnIndex) {
		/** @todo Implement this javax.swing.table.TableModel method */
		throw new java.lang.UnsupportedOperationException("Method getValueAt() not yet implemented.");
	}

	@Override
    public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
		/** @todo Implement this javax.swing.table.TableModel method */
		throw new java.lang.UnsupportedOperationException("Method setValueAt() not yet implemented.");
	}

	@Override
    public void addTableModelListener(TableModelListener l) {
		/** @todo Implement this javax.swing.table.TableModel method */
		throw new java.lang.UnsupportedOperationException("Method addTableModelListener() not yet implemented.");
	}

	@Override
    public void removeTableModelListener(TableModelListener l) {
		/** @todo Implement this javax.swing.table.TableModel method */
		throw new java.lang.UnsupportedOperationException("Method removeTableModelListener() not yet implemented.");
	}

}
